package com.recive.sbus.common.log;

import java.util.Date;

import com.recive.sbus.login.domain.LoginLog;

public class LogFactory {

	private static LoginLog loginLog;

	public static LoginLog newLoginLogIntstance(Long userid, String logType, String logState, String message,
			String ip) {
		loginLog = new LoginLog();
		loginLog.setIp(ip);
		loginLog.setLogname(logType);
		loginLog.setMessage(message);
		loginLog.setState(logState);
		loginLog.setUserid(userid);
		loginLog.setCreatetime(new Date());
		return loginLog;
	}

}
